package com.zhl.study;

import com.zhl.study.service.RpcClient;

/**
 * @description TODO
 * @Author: z156940l@outlook.com
 * @className Client
 * @Date: 2024/5/20 10:48
 */
public class Client {
    public static void main(String[] args) {
        RpcClient client = new RpcClient();
        CalcService  service = client.getProxy(CalcService.class);

        int r1 = service.add(1,2);
        int r2 = service.minus(10,8);

        System.out.println(r1);
        System.out.println(r2);
    }
}
